//引入mongoose
const mongoose = require("mongoose");

//创建骨架
var userSchema = mongoose.Schema({
  "userId" : String,
  "userInfo" : Object,
  "userPets" : Array,
  "userCart" : Array,
  "userOrder" : Array,
  "userQuestions" : Array,
});

//创建模型
var userModel = mongoose.model('users', userSchema);
//暴露
module.exports = userModel;